Skip to content

Writer: don't write a file mode for the string table#21

Merged
chrisnovakovic merged 1 commit intoplease-build:masterfrom
chrisnovakovic:writer-string-table-no-mode
Oct 8, 2025
Merged

Writer: don't write a file mode for the string table#21
chrisnovakovic merged 1 commit intoplease-build:masterfrom
chrisnovakovic:writer-string-table-no-mode

Conversation

@chrisnovakovic
Copy link

String tables in GNU-variant archives aren't real files and don't require a file mode - leave the field empty.

String tables in GNU-variant archives aren't real files and don't
require a file mode - leave the field empty.
Copy link

@toastwaffle toastwaffle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there readers that will reject the header for having a filemode? This seems like unnecessary complexity?

@chrisnovakovic
Copy link
Author

Are there readers that will reject the header for having a filemode? This seems like unnecessary complexity?

While GNU ar silently ignores the file mode field on a string table if it sees it, it doesn't write one in archives it outputs. We should probably follow its lead, given that its implementation defines the variant of the format.

@chrisnovakovic chrisnovakovic merged commit d346232 into please-build:master Oct 8, 2025
2 checks passed
@chrisnovakovic chrisnovakovic deleted the writer-string-table-no-mode branch October 8, 2025 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants